package com.ihr360.payroll.service.alps.profile.provider;

import com.ihr360.alps.IServiceProfile;
import com.ihr360.commons.model.type.WorkHourType;
import com.ihr360.payroll.service.alps.profile.OverTimeRuleServiceProfile;

public class StandardOverTimeParamProvider implements ProfileParamProvider {
    @Override
    public String logTitle() {
        return String.format("[加班工资规则(%s)]", WorkHourType.STANDARD.getTitle());
    }

    @Override
    public String buildVariable(WorkHourType workHourType, IServiceProfile profile) {
        return OverTimeRuleServiceProfile.buildVariableId(workHourType, profile);
    }

    @Override
    public IServiceProfile numOpRatio() {
        return OverTimeRuleServiceProfile.numOpRatio;
    }

    @Override
    public IServiceProfile weekendRatio() {
        return OverTimeRuleServiceProfile.weekendRatio;
    }

    @Override
    public IServiceProfile holidayRatio() {
        return OverTimeRuleServiceProfile.holidayRatio;
    }

    @Override
    public IServiceProfile baseRatio() {
        return OverTimeRuleServiceProfile.baseRatio;
    }

    @Override
    public IServiceProfile monthlyWorkDays() {
        return OverTimeRuleServiceProfile.monthWorkCount;
    }

    @Override
    public IServiceProfile dailyWorkHours() {
        return OverTimeRuleServiceProfile.dayWorkCount;
    }

    @Override
    public IServiceProfile calcBase() {
        return OverTimeRuleServiceProfile.calcBase;
    }
}